package actionPattern.RespsbilityChain.model;

public class HR implements IManager{

    @Override
    public boolean approve(LeaveRequest leaveRequest) {

        //HR审批该员工的离职是否对公司安全
        if(!leaveRequest.isSafeForCompany()) {
            System.out.println("该员工的离职会对公司造成潜在风险，HR审批拒绝");
            return false;
        }
        System.out.println("HR审批通过");
        return true;
    }

}
